|
|
|
|
|
- Overview
- Generating a Java application with WINDEV
- Creating a Java project
- Creating the project
- Changing the project generation type
- Characteristics of a Java project
- RAD available in Java
Generating a Java application with WINDEV WINDEV allows you to generate a Java application without even knowing the Java language. The method for developing the application is identical to the method for developing any other WINDEV application. When the WINDEV project is compiled, the windows and the WLanguage functions are automatically converted into Java. Note: It is recommended to create a new WINDEV project to develop a Java application, rather than converting a WINDEV application to Java. Creating the project A Java project is created like any other WINDEV project. To create a WINDEV Java project: - Click
in the quick access buttons. The window for creating a new element is displayed: click "Project". - The project creation wizard starts.
- Choose the type of project generation. Select "Java archive" and continue.
Once the project is created, you can develop in WLanguage as for any other WINDEV project. Note: In this version, only a limited number of WLanguage functions can be used in a Java project. This number of functions will increase in forthcoming versions. For more details, see Functions available in Java. Changing the project generation type To generate a Java archive from an existing WINDEV project, simply create a "Java archive" project configuration directly from the "Project explorer" pane. Characteristics of a Java project Once the project has been configured as a Java project, all the tools available in WINDEV are automatically configured for the Java project: - The compilation of the project indicates whether your project contains functions or controls that cannot be used in Java.
- The creation of the archive makes it possible to generate a ".jar" file in the EXE directory of the project.
- The setup module of the application only handles the files required for deploying the Java application.
Note: It is recommended to create a new WINDEV project to develop a Java application, rather than converting a WINDEV application to Java. RAD available in Java On a Java project that handles data files, you have the abomotu to use the Full il Application RAD or the Window RAD (Simple RAD). To use a RAD pattern other than the Simple RAD, the generated code will have to be adapted to operate in a Java application.
Related Examples:
|
Training (WINDEV): WD JavaMail
[ + ] This example is a Java example used to read and send emails.
|
|
Training (WINDEV): WD Managing the Java errors
[ + ] WINDEV enables you to develop Java applications without even knowing Java. You benefit from the power and from the automated processes of the WINDEV environment. One of the most useful automated processes is the automatic management of errors. This example presents the operating mode and the implementation of the mechanism for managing the WINDEV errors. Some illustrations allow you to understand the simplification performed when implementing this feature. This project is configured to generate a Java archive.
|
|
Training (WINDEV): WD Java Chart Designer
[ + ] WINDEV enables you to create some Java applications without even knowing Java. You program with a 5GL (WLanguage) and WINDEV generates the Java code. The drawing functions of WINDEV are available in Java generation. This example explains how to create charts with these drawing functions. Three types of charts are presented in this example: - the bar chart, - the scatter chart, - and the line chart.
|
|
Training (WINDEV): WD JAVA Calls
[ + ] WD JAVA Calls is an example containing two configurations of project: - A "Windows Application" configuration that is used to create the executable of the application - A "Java Application" configuration that is used to create the Java archive (.JAR) of the application This example is supplied with a JAR archive named "JavaFunction" external to the application. It presents the call to the methods of classes of this JAR archive via the WLanguage function named JavaExecuteFunction. This example also explains how a memory table can be filled (identical in Java mode and in Windows mode)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|